package xyz.taichu.EIf.Invoker;


import xyz.taichu.EIf.Command.Command;
import xyz.taichu.EIf.Command.ImgCommand;
import xyz.taichu.EIf.Command.KeyboardCommand;
import xyz.taichu.EIf.Command.MouseCommand;

public class Invoker
{
    private ImgCommand imgCommand;
    private KeyboardCommand keyboardCommand;
    private MouseCommand mouseCommand;


    public void setImgCommand(ImgCommand imgCommand)
    {
        this.imgCommand = imgCommand;
    }

    public void setKeyboardCommand(KeyboardCommand keyboardCommand)
    {
        this.keyboardCommand = keyboardCommand;
    }

    public void setMouseCommand(MouseCommand mouseCommand)
    {
        this.mouseCommand = mouseCommand;
    }

    public void img(){
        imgCommand.execute();
    }

    public void mouse(){
        mouseCommand.execute();
    }

    public void key(){
        keyboardCommand.execute();
    }
}
